package com.runmi.webchat.aftersale.dbcore.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.runmi.webchat.aftersale.dbcore.entity.SetupOrder;
import com.runmi.webchat.aftersale.dbcore.mapper.SetupOrderMapper;

@Repository
public class SetupOrderDao {

	@Autowired
	private SetupOrderMapper setupOrderMapper;
	
	public List<SetupOrder> getSetupOrderByStatus(String openId,Integer itemId,Byte status){
		SetupOrder record=new SetupOrder();
		record.setDelFlag((byte)0);
		record.setStatus(status);
		record.setOpenId(openId);
		record.setItemId(itemId);
		return setupOrderMapper.select(record);
	}
}

